﻿.MonthView .titlearea {
    text-align: center;
    font-size: 3.5em;
}

#datecommon {
    padding-right: 30px;
}

#calendarmonth, #monthtable, table, tbody {
    width: 99.9%;
    height: 98.1%;
}

#dropdownpicker {
    padding-left: 35px;
}

    #dropdownpicker select {
        border-width: 1px;
        border-color: #ccc;
        margin-right: 5px;
    }


#pre {
    float: left;
    background: url(../../images/left.png) no-repeat;
    background-position: bottom left;
    width: 33px;
    height: 41px;
    margin-bottom: 10px;
    margin-left: 8px;
}

    #pre:hover, #next:hover {
        background-position: top left;
    }

#dropdownpicker {
    float: left;
    margin-left: 55px;
}

#next {
    float: right;
    margin-right: 7px;
    background: url(../../images/right.png) no-repeat;
    background-position: bottom left;
    width: 33px;
    height: 41px;
}

td {
    width: 14.3%;
    color: #320000;
}

.monthtableheader {
    background-color: #f0f0f0;
    text-align: center;
    height: 50px;
    font-size: 2.2em;
    color: #10354f;
    font-weight: bolder;
}


.monthtablecontent {
    background-color: #f5f5f5;
}

.daycell {
    text-align: center;
}

    .daycell:hover {
        border: 1px solid red;
    }

.emptycell:hover {
    border: 0;
}

.daynumber {
    font-size: 3.3em;
}

.daylunar {
    font-size: 1.8em;
    color: #b5b5b5;
}

tr td.daycell:first-child .daynumber, tr td.daycell:last-child .daynumber {
    color: #cc6666;
}

.publicholidaycell {
    background-color: #FF6666;
}

.holiday2013 {
    background-image: url(../../images/holiday.png);
    background-repeat: no-repeat;
    background-position: 5px 5px;
}

.day24festival, .daychinesefestival, .daycommonholiday {
    color: #cc0000;
}

.publicholidaycell, .publicholidaycell .daynumber, .publicholidaycell .daylunar div, .holiday2013secondary .daylunar {
    color: #fff !important;
}

.holiday2013secondary {
    background-color: #ffcccc;
}

.todaycell {
    background-color: #cc3333;
    background-image: url(../../images/today.png);
    background-repeat: no-repeat;
    background-position: left top;
    color: #fff;
}

    .todaycell.daycell div.todyColor.daynumber {
        color: #fff;
    }

    .todaycell .daylunar {
        color: #fff;
    }

.hiddenFullDateDiv {
    display: none;
}

.event {
    background-color: blue;
}


@media screen and (-ms-view-state: snapped) {
    section[role=main] {
        margin-top: 10px;
    }

    .MonthView .titlearea {
        text-align: left;
        font-size: 2em;
    }

    #datecommon {
        display: block;
    }

    #dropdownpicker {
        padding-left: 0;
    }

    #monthtable {
        width: 100%;
        height: 50%;
    }

    .monthtableheader {
        height: 30px;
    }

    #pre, #next {
        font-size: 2em;
        padding: 0;
    }

    #dropdownpicker {
        margin-left: 20px;
    }

    .monthtableheader, .daynumber, .publicholidaycell, .daylunar {
        font-size: 1em;
        font-weight: normal;
    }

    .holiday2013 {
        background-image: url(../../images/holiday.png);
        background-position: 2px 2px;
        background-size: 12px 12px;
    }


    .todaycell {
        background-image: url(../../images/today_small.png);
    }
}

@media screen and (max-height:768px) {
    #calendarmonth, #monthtable, table, tbody {
        height: 97%;
    }

    .todaycell {
        background-size: 40% 55%;
    }


    .daynumber {
        font-size: 2.6em;
    }

    .daylunar {
        font-size: 1.6em;
    }
}

@media screen and (-ms-view-state: fullscreen-portrait) {
    .titlearea {
        text-align: center;
        font-size: 3em;
    }

    #datecommon {
        padding-right: 0;
    }
}
